package com.virtualightning.app.ui.main

import com.virtualightning.app.CustomHttpManager
import com.virtualightning.app.entity.TaokeOutsBean
import com.virtualightning.app.ui.TaokeOutsService
import com.virtualightning.mvvm.base.BaseTaskViewModel
import com.virtualightning.mvvm.impl.task.TaskManager

/**
 *  Anchor : Create by CimZzz
 *  Time : 2021/1/28 16:04:01
 *  Project : zxs-new
 *
 */
class SimpleListViewModel : BaseTaskViewModel() {
    val api = CustomHttpManager.getApi(TaokeOutsService::class.java)

    fun getPage(page: Int) : TaskManager.DeferredWrapper<TaokeOutsBean> {
        return taskManager.callRequest(api.taokeOuts(page))
    }
}